package com.example.ipcapplication

import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log
import com.example.ipcapplication.aidl.IServer

class RemoteTestService : Service() {

    private var serverBinder = object : IServer.Stub() {
        override fun testFunction(s: String?): Int {
            Log.i("test", "testFunction s= $s");
            return 0
        }
    }

    override fun onBind(intent: Intent): IBinder {
        return serverBinder
    }
}